package com.yanqu.road.entity.log.chefduel;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.ServerBaseLog;

@FieldTypeAnnotation(tableName = "t_c_chef_duel2_end_log",desc = "厨神对决2-结算（收摊）",autoSave = true, uploadCk = true, dataUpload = true, eventName = "cook_twoend", isCross = true)
public class LogChefDuel2End extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "活动id", isIndex = true, dataAttribute = "belong_actid")
    private int activityId;
    @FieldTypeAnnotation(desc = "用户id", isIndex = true)
    private long userId;
    @FieldTypeAnnotation(desc = "阵营", dataAttribute = "belong_id")
    private int campId;
    @FieldTypeAnnotation(desc = "桌子id", dataAttribute = "team_id")
    private int tableId;
    @FieldTypeAnnotation(desc = "使用菜品", dataAttribute = "item_use")
    private String useItem = "";
    @FieldTypeAnnotation(desc = "参与用户列", dataAttribute = "seagod_batuid")
    private String joinList = "";
    @FieldTypeAnnotation(desc = "获得积分", dataAttribute = "after_score")
    private long score;
    @FieldTypeAnnotation(desc = "开始时间", dataAttribute = "begin_time")
    private long openTime;

    public LogChefDuel2End(int activityId, long userId, int campId, int tableId, String useItem, String joinList, long score, long openTime) {
        this.activityId = activityId;
        this.userId = userId;
        this.campId = campId;
        this.tableId = tableId;
        this.useItem = useItem;
        this.joinList = joinList;
        this.score = score;
        this.openTime = openTime;
    }

    @Override
    public long getUserId() {
        return userId;
    }
}
